<template>
	<view>
		<view class="topBox">

			<view class="top">
				<view class="go-back iconfont" @click="goback">
					&#xe602;
				</view>
				<view class="middle">
					投资工具
				</view>
				<view class="share iconfont">

				</view>
			</view>

			<view class="invest-box">
				<view  >
					<navigator class="invest-item" v-for="item in investLists" :url="item.url">
						<image class="invest-icon" :src="item.iconUrl" mode=""></image>
						<view class="invest-right">
							<view class="invest-title">
								{{item.title}}
							</view>
							<view class="invest-content">
								{{item.content}}
							</view>
						</view>
					</navigator>
					
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {

		data() {
			return {
				investLists: [{
						id: 0,
						iconUrl: 'http://ai.ylcaifu.com/appimg/images/4.0-%E8%B4%A2%E5%AF%8C/4.0-%E8%B4%A2%E5%AF%8C/android/drawable-xhdpi/zhinengtougu.png',
						title: '智能投顾',
						content: '通过算法和产品来完成以往人工提供的理财顾问服务 ',
						url:'./fengxianceping/fengxianceping'
					},
					{
						id: 1,
						iconUrl: 'http://ai.ylcaifu.com/appimg/images/4.0-%E8%B4%A2%E5%AF%8C/4.0-%E8%B4%A2%E5%AF%8C/android/drawable-xhdpi/fangchangjisuanqi.png',
						title: '房产计算器',
						content: '通过算法和产品来完成以往人工提供的理财顾问服务',
						url:'./fangchanjisuanqi/fangchanjisuanqi'
					}, {
						id: 2,
						iconUrl: 'http://ai.ylcaifu.com/appimg/images/4.0-%E8%B4%A2%E5%AF%8C/4.0-%E8%B4%A2%E5%AF%8C/android/drawable-xhdpi/yanglaofangan.png',
						title: '一键养老方案',
						content: '通过算法和产品来完成以往人工提供的理财顾问服务',
						url:'./yanglaoguihua/yanglaoguihua'
					},
					{
						id: 3,
						iconUrl: 'http://ai.ylcaifu.com/appimg/images/4.0-%E8%B4%A2%E5%AF%8C/4.0-%E8%B4%A2%E5%AF%8C/android/drawable-xhdpi/zinvjiaoyuguihua.png',
						title: '子女教育规划',
						content: '通过算法和产品来完成以往人工提供的理财顾问服务',
						url:'./zinvlicaiguihua/zinvlicaiguihua'
					}, {
						id: 4,
						iconUrl: 'http://ai.ylcaifu.com/appimg/images/4.0-%E8%B4%A2%E5%AF%8C/4.0-%E8%B4%A2%E5%AF%8C/android/drawable-xhdpi/qitajisuanqi.png',
						title: '其他计算器',
						content: '通过算法和产品来完成以往人工提供的理财顾问服务',
						url:''
					}
				]
			}
		},
		methods: {
			goback() {
				uni.navigateBack({});
			}
		}
	}
</script>

<style>
	.topBox {

		width: 100%;
		background: url("http://ai.ylcaifu.com/appimg/images/4.0-%E8%B4%A2%E5%AF%8C/4.0-%E8%B4%A2%E5%AF%8C/android/drawable-xhdpi/biejing.png") no-repeat;
		background-size: 100% 300upx;
	}

	.top {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		padding: 67upx 30upx 37upx 37upx;
		color: rgb(255, 255, 255);
	}

	.middle {
		font-size: 18px;
	}

	.go-back {
		font-size: 17px;
	}

	.invest-box {
		padding: 0 30upx;
	}

	.invest-item {
		background: rgb(255, 255, 255);
		display: flex;
		flex-direction: row;
		align-items: center;
		padding: 20px 25px;
		box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.05);
		border-radius: 10upx;
		margin-bottom: 15px;

	}

	.invest-right {
		display: flex;
		flex-direction: column;
		flex: 1;
	}

	.invest-icon {
		height: 50px;
		width: 50px;
		margin-right: 30upx;
	}

	.invest-title {
		font-size: 18px;

		font-weight: bold;
	}
	.invest-content{
		color:rgba(153,153,153,1);
	}
</style>
